db00e899d633e5bcf3044bb2751f3592c9598e28,src/main/java/edu/wisc/my/webproxy/portlet/WebProxyPortlet.java,WebProxyPortlet,renderContent,#RenderRequest#RenderResponse#,232

Before Change


                        final PageCache cache = (PageCache)context.getBean("PageCache", PageCache.class);

                        final IKeyManager keyManager = (IKeyManager)context.getBean("keyManager", IKeyManager.class);
                        final String cacheKey = keyManager.generateCacheKey(sUrl, request);

                        final CacheEntry cachedData = cache.getCachedPage(cacheKey, true);

After Change



                        final IKeyManager keyManager = (IKeyManager)context.getBean("keyManager", IKeyManager.class);
                        
                        final String cacheScope = myPreferences.getValue(CacheConfigImpl.CACHE_SCOPE, null);
                        String cacheKey = null;
                        /*
                         * If scope is user get a key unique to this portlet instance.
                         * Otherwise use the url alone as the key.  This will share the response across all
                         * instances of web proxy portlet.
                         */
                        if (cacheScope  == null || cacheScope.equals(CacheConfigImpl.CACHE_SCOPE_USER))
                            cacheKey = keyManager.generateCacheKey(sUrl, request);
                        else 
                            cacheKey = sUrl;